﻿using System.Data.Entity.Migrations;

namespace EFRepository
{
    internal static class Program
    {
        public static void Main(string[] args)
        {
            var configuration = new DbMigrationsConfiguration
                {
                    MigrationsAssembly = typeof (EFContext).Assembly,
                    ContextType = typeof (EFContext),
                    AutomaticMigrationsEnabled = true,
                };

            var dbMigrator = new DbMigrator(configuration);
            dbMigrator.Update(null);
        }
    }
}